<?php
	require_once('system/dbconn.php');
    require_once('system/myfun.php');
	connect();
	$id = $_GET['id'];
    $sql="select * from jiaju where GL_id={$id}";
	$result=mysql_query($sql);
	 if($result)
	 {     
	$row=mysql_fetch_assoc($result);
	$sql = "delete from jiaju where GL_id={$id}";
	$result = mysql_query($sql) or die('删除失败！'.mysql_error());
	if(!mysql_error()){
		redirect('list.php', '删除成功！');
	}	
	else{
   echo "错误";
 }
}
?>
